<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>生成出门证</title>
    <link rel="stylesheet" href="style.css">
</head>
<body>
    <div class="container">
        <h1>生成出门证</h1>
        <form id="passForm">
            <label for="name">姓名:</label>
            <input type="text" id="name" name="name" required><br><br>
            
            <label for="subject">学科:</label>
            <input type="text" id="subject" name="subject" required><br><br>
            
            <label for="grade">年级/科室:</label>
            <input type="text" id="grade" name="grade" required><br><br>
            
            <label for="photo">上传一寸照片:</label>
            <input type="file" id="photo" name="photo" accept="image/*" required><br><br>
            
            <button type="submit">生成出门证</button>
        </form>
        <canvas id="canvas" style="display:none;"></canvas>
    </div>
    <script src="script.js"></script>
</body>
</html>